home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / os2tools / bnklysrc / b_banner.c < prev    next >
Text File  |  1989-05-07  |  7KB  |  199 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software <no-Inc>                   */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          No-Cost<no-tm> Software.                       */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*  Copyright (C) 1987, 1988, 1989 by Robert Hartman and Vincent Perriello  */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*          This module was originally written by Vince Perriello           */
  14. /*                                                                          */
  15. /*                                                                          */
  16. /*                       BinkleyTerm Opening Banner                         */
  17. /*                                                                          */
  18. /*                                                                          */
  19. /*    For complete  details  of the licensing restrictions, please refer    */
  20. /*    to the License  agreement,  which  is published in its entirety in    */
  21. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.210.    */
  22. /*                                                                          */
  23. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  24. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  25. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  26. /*    NOT HAVE THESE FILES,  YOU SHOULD  IMMEDIATELY CONTACT THE AUTHORS    */
  27. /*    AT THE  ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO    */
  28. /*    USE   THIS  FILE  WITHOUT  HAVING   ACCEPTED  THE  TERMS  OF   THE    */
  29. /*    BINKLEYTERM  LICENSING AGREEMENT,  OR SUCH OTHER  AGREEMENT AS YOU    */
  30. /*    ARE ABLE TO REACH WITH THE AUTHORS.                                   */
  31. /*                                                                          */
  32. /*                                                                          */
  33. /*    The Authors can be reached at the following addresses:                */
  34. /*                                                                          */
  35. /*    Robert C. Hartman                      Vincent E. Perriello           */
  36. /*    Spark Software                         VEP Software                   */
  37. /*    427-3 Amherst Street                   111 Carroll Street             */
  38. /*    CS2032, Suite 232                      Naugatuck, CT 06770            */
  39. /*    Nashua, NH 03061                                                      */
  40. /*                                                                          */
  41. /*    FidoNet 1:132/101                      FidoNet 1:141/491              */
  42. /*    Data    (603) 888-8179                 Data    (203) 729-7569         */
  43. /*                                                                          */
  44. /*    Please feel free to contact us at any time to share your comments     */
  45. /*    about our software and/or licensing policies.                         */
  46. /*                                                                          */
  47. /*--------------------------------------------------------------------------*/
  48.  
  49. #include <string.h>
  50. #include <stdlib.h> /*PLF Sat  05-06-1989; needed for _osmode */
  51.  
  52. #include "com.h"
  53. #include "xfer.h"
  54. #include "zmodem.h"
  55. #include "keybd.h"
  56. #include "sbuf.h"
  57. #include "sched.h"
  58. #include "externs.h"
  59. #include "prototyp.h"
  60.  
  61. static void mtask_find (void);
  62.  
  63. void opening_banner ()
  64. {
  65.    char bd[10];
  66.  
  67.    if (!fullscreen || !un_attended)
  68.       {
  69.       scr_printf ("\033[H\033[2J");
  70.       scr_printf (ANNOUNCE);
  71.       scr_printf ("\r\nA Freely Available Dumb Terminal and FidoNet Mail Package\r\n");
  72.       scr_printf ("Setting COM");
  73.       WRITE_ANSI (port_ptr + '1');
  74.       scr_printf (": to initial speed of ");
  75.       sprintf (bd, "%d", max_baud);
  76.       scr_printf (bd);
  77.       scr_printf (" baud. Press Alt-F10 for HELP.\r\n");
  78.       }
  79.  
  80.    fossil_ver ();
  81.    mtask_find ();
  82. }
  83.  
  84. static void mtask_find ()
  85. {
  86.    char buff[80];
  87.    int fs1, fs2;
  88.  
  89.    fs1 = fullscreen && (un_attended || doing_poll);
  90.    fs2 = (!fullscreen) || !(un_attended || doing_poll);
  91.  
  92.    if (fs2)
  93.       {
  94.       scr_printf ("Multi-Tasker: ");
  95.       }
  96. #ifndef OS_2 /*PLF Fri  05-05-1989  07:03:30 */
  97.    if ((have_dv = dv_get_version ()) != 0)
  98.       {
  99.       if (fs1)
  100.          {
  101.          sprintf (buff, "DESQview");
  102.          }
  103.       else
  104.          {
  105.          sprintf (buff, "DESQview version %d.%02d detected\r\n",
  106.                   have_dv >> 8, have_dv & 0xff);
  107.          }
  108.       }
  109.    else if ((have_ddos = ddos_active ()) != 0)
  110.       {
  111.       if (fs1)
  112.          {
  113.          strcpy (buff, "DoubleDOS");
  114.          }
  115.       else
  116.          {
  117.          strcpy (buff, "DoubleDOS detected\r\n");
  118.          }
  119.       }
  120.    else if (have_ml)
  121.       {
  122.       if ((have_ml = ml_active ()) != 0)
  123.          {
  124.          if (fs1)
  125.             {
  126.             strcpy (buff, "MultiLink");
  127.             }
  128.          else
  129.             {
  130.             strcpy (buff, "MultiLink detected\r\n");
  131.             }
  132.          }
  133.       else
  134.          {
  135.          if (fs1)
  136.             {
  137.             strcpy (buff, "None");
  138.             }
  139.          else
  140.             {
  141.             strcpy (buff, "None detected\r\n");
  142.             }
  143.          }
  144.       }
  145.    else if (have_tv)
  146.       {
  147.       if ((have_tv = tv_get_version ()) != 0)
  148.          {
  149.          if (fs1)
  150.             {
  151.             strcpy (buff, "T-View");
  152.             }
  153.          else
  154.             {
  155.             strcpy (buff, "TopView/TaskView detected\r\n");
  156.             }
  157.          }
  158.       else
  159.          {
  160.          if (fs1)
  161.             {
  162.             strcpy (buff, "None");
  163.             }
  164.          else
  165.             {
  166.             strcpy (buff, "None detected\r\n");
  167.             }
  168.          }
  169.       }
  170.    else
  171.       {
  172.       if (fs1)
  173.          {
  174.          strcpy (buff, "None");
  175.          }
  176.       else
  177.          {
  178.          strcpy (buff, "None detected\r\n");
  179.          }
  180.       }
  181. #else /*PLF Fri  05-05-1989  07:03:59 */
  182.     if( _osmode == DOS_MODE )
  183.         strcpy(buff, "None");
  184.     else
  185.         strcpy(buff, "OS/2");
  186.     if(!fs1) strcat(buff, "\r\n");
  187. #endif /*PLF Fri  05-05-1989  07:03:59 */
  188.    if (fs2)
  189.       {
  190.       scr_printf (buff);
  191.       }
  192.    else
  193.       {
  194.       sb_move (settingswin, SET_TASK_ROW, 2);
  195.       sb_puts (settingswin, "M'Task: ");
  196.       sb_puts (settingswin, buff);
  197.       }
  198. }
  199.